﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Assignment3Service.Assignment3ServiceClient service = new Assignment3Service.Assignment3ServiceClient();

            String[] words = new String[] { "information", "informant", "heartbeat","Undisciplined","a","informalized","formalized"};
            String[] stems = service.Stemming(words);
            for (int i = 0; i < words.Length; i++)
            {
                Console.WriteLine("{0} ==> {1}",words[i],stems[i]);
            }

            String[] news = service.NewsFocus(new String[] {"espn","sushi"});
            foreach (string str in news)
            {
                Console.WriteLine("Url: {0}", str);
            }


            String[] embeddedUrls = service.UrlsInPage( "http://www.espn.com");
            foreach (string str in embeddedUrls)
            {
                Console.WriteLine("Embedded: {0}", str);
            }

            String[] embeddedImageUrls = service.ImagesInPage("http://espn.com");
            foreach (string str in embeddedImageUrls)
            {
                Console.WriteLine("Images: {0}", str);
            }

            Console.WriteLine("Remove JS: {0}", service.RemoveJavascript("http://espn.com"));

            Console.WriteLine("Attempting to remove user data: Results - {0}", service.RemoveUserInfoFromRecords("cory.zachman"));

            Console.WriteLine("Please press ENTER to exit");
            Console.ReadLine();
        }
    }
}
